from django.core.mail import send_mail
from celery_tasks.main import celery_app


@celery_app.task
def celery_send_email(verify_url,recipient_list):
    send_mail("验证邮件",
              "",
              '商城<15123040587@163.com>',
              recipient_list,
              html_message='<p>尊敬的用户您好！</p>' \
                           '<p>感谢您使用商城。</p>' \
                           '<p>请点击此链接激活您的邮箱：</p>' \
                           '<p><a href="%s">%s<a></p>' % (verify_url, verify_url),
              )